package com.cq.hd.member.mapper;

import com.cq.hd.member.api.dto.BusinessSubscribeDto;
import com.cq.hd.member.api.vo.BusinessSubscribeCountVo;
import com.cq.hd.member.api.vo.BusinessSubscribeVo;
import com.cq.hd.member.po.TbBusinessSubscribePo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订阅商家表 Mapper 接口
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
@Mapper
public interface TbBusinessSubscribeMapper extends BaseMapper<TbBusinessSubscribePo> {

    List<BusinessSubscribeVo> listByBusinessIds(@Param("businessIds") List<Long> businessIds);

    List<BusinessSubscribeVo> listByDto(BusinessSubscribeDto businessSubscribeDto);

    List<BusinessSubscribeCountVo> statisticsBusinessSubscribeCount(@Param("businessIds") List<Long> businessIds);

}
